﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

using FarseerGames.FarseerPhysics.Collisions;
using FarseerGames.FarseerPhysics.Dynamics;
using FarseerGames.FarseerPhysics.Factories;

namespace TileEngine
{
    public enum EnemyType
    {
        Ground,
        Air,
        Wall
    }

    public class Enemy
    {        
        public EnemyType type;
        public int width = 100;
        public int height = 35;

        public Body body;
        public Geom geom;

        public Vector2 position;
        public Texture2D texture;

        Random rand = new Random();

        public Enemy()
        {
            float x = rand.Next(0, 40 * 64);
            float y = rand.Next(-500, 0);

            position = new Vector2(x, y);

            body = BodyFactory.Instance.CreateRectangleBody(width, height, 1);

            body.Position = position;
            geom = GeomFactory.Instance.CreateRectangleGeom(body, width, height); 
            
        }
    }
}
